# List of rules

# RULE GRN

Description (EN) |
    GRN shall fulfil check algorithm specified in ISO 6346.
Description (ME) |
    GRN će ispuniti algoritam provjere naveden u ISO 6346.

# RULE NR001

Description (EN) |
    This date shall not exceed current date.
Description (ME) |
    Datum ne smije biti veći od tekućeg datuma.

# RULE NR004

Description (EN) |
    This element should be equal 0 / false.
Description (ME) |
    Ovaj element mora biti jednak 0/pogrešno.

# RULE NR005

Description (EN) |
    IF Requester role = "Guarantor"
    THEN cannot be used foreign GRN.
Description (ME) |
    Ako upit postavlja garant onda GRN mora biti crnogorskii.

# RULE NR006

Description (EN) |
    Only "Guarantor" can be used.
Description (ME) |
    Dozvoljeno je koristiti samo "Garant".

# RULE NR007

Description (EN) |
    Expiry date shall not be less than Valid from
Description (ME) |
    Datum isteka važenja ne može biti manji od datuma početka važenja

# RULE NR021

Description (EN) |
    Guarantor TIN shall be different from Holder TIN
Description (ME) |
    PIB garanta se mora razlikovati od PIB korisnika garancije.

# RULE NR022

Description (EN) |
    Guarantor can make query type 1 (Usage) only for guarantee type 2 (Individual guarantee by guarantor) or 4 (Individual guarantee voucher)
Description (ME) |
    Garantu je dozvoljeno da vrši upit vrste 1 (Usage) samo za vrstu garancije '2' (Pojedinačno obezbjeđenje koje daje garant) ili '4' (Pojedinačno obezbjeđenje u obliku vaučera).

# RULE NR028

Description (EN) |
    IF period From and To is greater than 31 days or From and To are not used
    THEN this element will set to "1" and data group Usage will contain only non released usages
     ELSE this element will set to "0" and data group Usage will contain all usages.
Description (ME) |
    AKO je period Od - Do duži od 31 dan ili Od - Do se ne koristi                                  ONDA će ovaj element biti postavljen na ''1'' i grupa podataka Upotreba sadržaće samo neobjavljena korišćenja                                                                                  U DRUGOM SLUČAJU će biti postavljen na ''0'' i grupa podatka ''Upotreba'' sadržaće sva korišćenja

# RULE NR030

Description (EN) |
    Combination of guarantee type and regime must be allowed in the code list GuaranteeType_GMS.
Description (ME) |
    Kombinacija vrste garancije i režima mora da odgovara podacima u GMS

# RULE NR067

Description (EN) |
    Only Montenegro customs office is acceptable with this item
Description (ME) |
    Dozvoljena je samo crnogorska carinska ispostava.

# RULE NR068

Description (EN) |
    Only Montenegro GRN can be filled
Description (ME) |
    Samo crnogorski GRN može biti popunjen.

# RULE NR070

Description (EN) |
    If Trader –  Holder of the procedure use query type “1” (Usage) or “3” (Usage and exposure), the maximal period is limited to 30 days due to capacity of the NCTS infrastructure
Description (ME) |
    If Trader –  Holder of the procedure use query type “1” (Usage) or “3” (Usage and exposure), the maximal period is limited to 30 days due to capacity of the NCTS infrastructure

# RULE NTR002

Description (EN) |
    Expiry date may not exceed one year from the validity date
Description (ME) |
    Datum ne može biti veći od ValidFrom plus jedna godina.

# RULE R0028

Description (EN) |
    The structure of this Data Item is validated as specified in DDCOM. The check digit must follow the ISO 6346 standard.
Description (ME) |
    Struktura ove stavke podataka se validira kao što je naznačeno u DDCOM. Kontolna cifra mora slijediti standard ISO 6346.

# RULE R0261

Description (EN) |
    Query Identifier ‘2’ (exposure only) and ‘3’ (usage and exposure) can not be used for guarantee types ‘2’ (individual guarantee by Guarantor) and ‘4’ (individual guarantee in the form of voucher).
Description (ME) |
    Vrsta upita ''2'' (exposure only) i ''3'' (usage and exposure) nije dozvoljena za vrstu garancije tip ''2'' (individualna garancija od garanta) i ''4'' (Pojedinačna garancija u formi vaučera)

# RULE R0705

Description (EN) |
    The Data Item <GUARANTEE QUERY / Period to date> must be posterior to <GUARANTEE QUERY / Period from date>.
Description (ME) |
    Stavka podataka <PITANJE GARANCIJE / Period do datuma> mora biti prije <<GARANTNO PITANJE / Period od datuma>.

# RULE R0850

Description (EN) |
    IF sender is in EU (CL010)
    THEN the value must be a valid EORI or TCUIN (validated by receiver, if located in EU),
    ELSE (sender is not in EU) the value must be a TIN number (validated by the message sender only).
    The EORI/TCUIN values should comply with the following pattern: <xs:pattern value=" [A-Z]{2}[\x21-\x7E]{1,15}"/>
Description (ME) |
    AKO je pošiljalac u EU (CL010)
    ONDA vrijednost mora biti važeći EORI ili TCUIN (validiran od strane primaoca, AKO se nalazi u EU),
    U SUPROTNOM (pošiljalac nije u EU) vrijednost mora biti TIN broj (validiran samo porukom od pošiljaoca).
    EORI/TCUIN vrijednosti moraju biti u skladu sa sledećim obrascem: <xs:pattern value=" [A-Z]{2}[\x21-\x7E]{1,15}"/>

# RULE TR0102

Description (EN) |
    Although the format of the Commodity Code is an..10 for technical reasons, only digits can be used in the data-item.
Description (ME) |
    Iako je format Koda robe ...10, iz tehničkih razloga, samo cifre mogu biti korišćene u stavci podataka.

# RULE TR9055

Description (EN) |
    If query identifier = ‘4’ and data group "Guarantee invail reason" is not used then only one of the groups marked with this technical rule must be used else none of the groups can be used.
Description (ME) |
    Ako se ne koristi identifikator upita = '4' i grupa podataka "Razlog garancije neovlaštenosti", tada se mora koristiti samo jedna od grupa označena ovim tehničkim pravilom, a nijedna od grupa ne može da se koristi.

# List of conditions

# Conditions

# CONDITION C0285

Description (EN) |
    IF Query type = 1 or 4 OR Guarantee type="4" OR data group "Guarantee invail reason" is used
    THEN this data group shall not be used
    ELSE this data group shall be used.

# CONDITION C0817

Description (EN) |
    IF /CC037C/GuaranteeReference/GuaranteeQuery/queryIdentifier is in SET {2, 4}
    THEN /CC037C/GuaranteeReference/Usage = "N"
    ELSE /CC037C/GuaranteeReference/Usage = "O"

# CONDITION C230

Description (EN) |
    IF ‘Guarantee type’ = ‘9’ (Individual guarantee with multiple usage)
         THEN the attribute = R
         ELSE the attribute = O

# CONDITION C231

Description (EN) |
    IF ‘Guarantee type’ = ‘0’ or ‘1’
    THEN this element shall be used
    THEN this element shall not be used

# CONDITION C232

Description (EN) |
    IF ‘TIR Carnet’ =’1’
        THEN ‘Voucher amount’ and ‘Currency’ = R
        ELSE can not be used

# CONDITION C232N

Description (EN) |
    IF ‘TIR Carnet’ =’1’
        THEN ‘Voucher amount’ shall be used
        ELSE can not be used

# CONDITION C234

Description (EN) |
    IF Guarantee type = "1", "2" ," 4" , "9" or "V"
      AND Guarantee Invalid Reason is not used
    THEN this data group shall be used
    ELSE this data group shall not be used.

# CONDITION C235

Description (EN) |
    IF Guarantee type = 9
    THEN the attribute is required
    ELSE can not be used

# CONDITION C270N1

Description (EN) |
    IF Query type = 4 AND Guarantee regime is Commont transit
    THEN these data groups can be used
    ELSE these data groups cannot be used.

# CONDITION C270N2

Description (EN) |
    IF Query type = 4 and data group "Guarantee invaild reason" is not used
    THEN this data group shall be used
    ELSE this data group shall not be used

# CONDITION C286

Description (EN) |
    IF "Guarantee Monitoring code" = "3"
    THEN   "Balance" shall be used
    ELSE   "Balance" can not be used

# CONDITION NC002

Description (EN) |
    IF Data group "Guarantee invalid reason" is used
    THEN this data element/group cannot be used
    ELSE this data element/group shall be used
Description (ME) |
    NC002: AKO se koristi grupa podataka RAZLOG ZA ODBRANJU, tada se ovaj element / grupa podataka NE ​​MORA upotrebljavati OSTALO ovaj element MORA da se koristi.

# CONDITION NC008

Description (EN) |
    IF Query type = 4 AND data group "Guarantee invalid reason" is not used
    THEN this data group/element can be used
    ELSE this data group/element shall not be used.
Description (ME) |
    NC008: AKO Vrsta upita "= 4, a grupa podataka" RAZLOG ZA ODBRANJIVANJE "nije navedena, tada elementi / grupe obeleženi ovim stanjem MOŽE BITI DRUGAČI elementi / grupe obeleženi ovim uslovima NE MORAJU biti navedeni

# CONDITION NC009

Description (EN) |
    IF Query type = 1 or 3 AND data group "Guarantee invalid reason" is not used
    THEN this data element/group shall be used
    ELSE this data element/group shall not be used
Description (ME) |
    NC009: AKO Upitni tip "= 1 ili 3, a grupa podataka" RAZLOG ZA ODBIJANJE "tada nije navedena
     ovaj element MORA biti naveden OSTALO ovaj element NE MORA biti naveden

# CONDITION NC012

Description (EN) |
    This element shall be used only if Holder want to change primary access code of guarantee.
Description (ME) |
    NC012: Ovaj se element koristi samo ako držač moda želi promijeniti primarni pristupni kod.

# CONDITION NC013

Description (EN) |
    IF Guarantee regime is Common transit
    THEN data group Other adresses can be used
    ELSE data group Other adresses cannot be used
Description (ME) |
    NC013: Ako je vrsta tranzita CT, tada se može koristiti grupa podataka Ostale adrese, druga grupa podataka Ostale adrese

# CONDITION NC022

Description (EN) |
    IF regime is common transit THEN this element shall not be used
    ELSIF regime is national transit THEN this element shall be used.
Description (ME) |
    NC022: Ako je režim zajednički tranzit ONDA se ovaj element neće koristiti ELSIF režim je nacionalni tranzit ONDA će se ovaj element koristiti.

# CONDITION R0263

Description (EN) |
    The Data Item can be used only with Guarantee types ‘0’ (guarantee waiver), ‘1’ (comprehensive guarantee) or ‘9’ (Individual guarantee with multiple usage), with either Query Identifier ‘1’ (usage only) or ‘3’ (usage and exposure).

# CONDITION R264

Description (EN) |
    The attribute can be used only with guarantee types ‘0’ (guarantee waiver) and ‘1’ (comprehensive guarantee).

# CONDITION R270N

Description (EN) |
    When a Holder is requesting the information then the Access code (of the Holder) becomes required.

# CONDITION R271

Description (EN) |
    This attribute becomes optional for international IEs when guarantee type is ‘0’ or ‘1’, and is required in all other cases.

# CONDITION R275N

Description (EN) |
    IF Requestor role = Holder
    THEN this data group shall be used and shall be identical with the data group Requestor
    ELSE this data group shall not be used.

# CONDITION TR9060

Description (EN) |
    IF “Guarantee type” = “0” or “1” and the message is national
     THEN the attribute is required
     ELSE IF “Guarantee type” = “0” or “1” and the message is international
             THEN the attribute is optional
             ELSE the attribute cannot be used.

(Generated: 31.08.2022 9:51:25)